mapNonNull

inline fun <D, T : Any, R> ReadOnlyProperty<D, T?>.mapNonNull(crossinline read: (T) -> R): ReadOnlyProperty<D, R?>

Map reads from a delegate if the delegate's value is non-null.

inline fun <D, T : Any> ReadWriteProperty<D, T?>.mapNonNull(crossinline read: (T) -> T): ReadWriteProperty<D, T?>

Map reads from a delegate if the value is non-null

inline fun <D, T : Any, R> ReadWriteProperty<D, T?>.mapNonNull(crossinline read: (T) -> R, crossinline write: (R) -> T): ReadWriteProperty<D, R?>

Map reads from and writes to a delegate if the value is non-null